﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class car
    {
        public string brand { get; set; }
        public car(string brand) {
            this.brand = brand;
        
        }
        public void run() {

            Console.WriteLine($"{brand}会跑");
        }
    }
    class batcar : car, Ifly
    {   public batcar(string brand):base(brand) { 
        
        
        }
        public void fly()
        {
            Console.WriteLine($"{brand}会飞");
        }
    }
    interface Ifly{
        void fly();
}
}
